<?php
class Zend_View_Helper_Control {
	private $view = null;
	private $_name = null;
	
	public function control($name, $data = null) {
		return $this->view->partial ( 'controls' . Zend_Registry::get ( 'config' )->controls->$name, array ('row' => $data ) );
	}
	
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
	}
}